<template>
  <div class="not-found">
    <t-result status="404" title="页面不存在" description="抱歉，您访问的系统监控页面不存在">
      <template #action>
        <t-button theme="primary" @click="goHome"> 返回首页 </t-button>
      </template>
    </t-result>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';

defineOptions({
  name: 'NotFound',
});

const router = useRouter();

const goHome = () => {
  router.push('/monitor');
};
</script>

<style scoped>
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 20px;
}
</style>
